import 'package:flutter/material.dart';

import 'colors.dart';

class StylesUtils {
  StylesUtils._();

  static TextStyle defaultTextStyle([double fontSize = 14, double lineHeight = 1.0]) {
    return TextStyle(
        fontSize: fontSize,
        fontFamily: 'Regular',
        fontWeight: FontWeight.normal,
        height: lineHeight,
        fontStyle: FontStyle.normal,
        color: Colors.white);
  }

  static TextStyle customTextStyle(
      {double fontSize = 14,
      FontWeight fontWeight = FontWeight.normal,
      String color = ColorsUtils.colorFfff,
      double lineHeight = 1.0}) {
    return TextStyle(
        fontSize: fontSize,
        fontFamily: 'Regular',
        fontWeight: FontWeight.normal,
        fontStyle: FontStyle.normal,
        color: ColorsUtils.parseColorFromHexString(color),
        height: lineHeight);
  }

  static TextStyle textStyle(
      {double fontSize = 14,
      FontWeight fontWeight = FontWeight.normal,
      Color color = Colors.white,
      double lineHeight = 1.0}) {
    return TextStyle(
        fontSize: fontSize,
        fontFamily: 'Regular',
        fontWeight: FontWeight.normal,
        color: color,
        fontStyle: FontStyle.normal,
        height: lineHeight);
  }
}
